//Bf2 Rank Mod Flag MOd File
//Contains all the functions for bf2 to register flag scoring from CS flag mod.


#if defined bf2_flag_included
  #endinput
#endif
#define bf2_flag_included

public csf_flag_taken(id)
{
	if ( get_playersnum() < get_pcvar_num(g_flag_min_players) ) return

	new tempkills = get_pcvar_num(g_flag_kills)

	if ( tempkills < 1 ) return

	totalkills[id] += tempkills

	DisplayHUD(id)
	client_print(id, print_chat, "[BF2] Otrzymales %d BF2 zabicia za zdobycie flagi!", tempkills)
}

public csf_round_won(id)
{
	if ( get_playersnum() < get_pcvar_num(g_flag_min_players) ) return

	new tempkills = get_pcvar_num(g_flag_round_kills)

	if ( tempkills < 1 ) return

	totalkills[id] += tempkills
	DisplayHUD(id)

	client_print(id, print_chat, "[BF2] Twoj team otrzymal %d BF2 zabicia za wygranie rundy flagowej", tempkills)
}

public csf_match_won(id)
{
	if ( get_playersnum() < get_pcvar_num(g_flag_min_players) ) return

	new tempkills = get_pcvar_num(g_flag_match_kills)

	if ( tempkills < 1 ) return

	totalkills[id] += tempkills
	DisplayHUD(id)

	client_print(id, print_chat, "[BF2] Twoj team otrzymal %d BF2 zabicia za wygranie meczu na flagi", tempkills)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
